///
/// 商品数据模型
///
class HomeProductModel {
  HomeProductModel({
    required this.name,
    required this.img,
    required this.num,
    required this.price,
  });

  String name;
  String img;
  int num;
  double price;
  bool isCollection = false; // 是否收藏

  factory HomeProductModel.fromJson(Map<String, dynamic> json) =>
      HomeProductModel(
        name: json["name"],
        img: json["img"],
        num: json["num"],
        price: json["price"],
      );
}
